package com.demo.gulimall.seckill.to;

import com.demo.gulimall.seckill.vo.SkuInfoVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Chen Yuan
 * @create 2023-08-07  16:47
 */
@Data
public class SecKillSkuRedisTo {

	/** 活动id */
	private Long promotionId;

	/** 活动场次id */
	private Long promotionSessionId;

	/** 商品id */
	private Long skuId;

	/** 秒杀价格 */
	private BigDecimal seckillPrice;

	/** 秒杀总量 */
	private Integer seckillCount;

	/** 每人限购数量 */
	private Integer seckillLimit;

	/** 排序 */
	private Integer seckillSort;

	// SKU 详细信息
	private SkuInfoVo skuInfoVo;


	private Long startTime;
	private Long endTime;

	// 随机码, 只有在秒杀开始时才暴露, 方式拼接请求攻击秒杀链接
	private String randomCode;

}
